<template>
	<view class="bankCard">
		<view class="cartList">
			<view class="cartitem" v-for="(item,index) in 2">
				<view class="message">
					<view class="bankname">
						建设银行
					</view>
					<view class="text">
						储蓄卡
					</view>
					<view class="cartnum">
						···· ···· ····4759
					</view>
				</view>
				<view class="jie">
					解绑
				</view>
			</view>

		</view>

		<view class="addCart" @click="handleAddcart">
			<u-icon name="plus" color="#04767C" size="28"></u-icon>
			<view class="" style="margin-top: 24rpx;">
				添加银行卡
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {
			if (!uni.getStorageSync("token")) {
				uni.reLaunch({
					url: "../login/index"
				})
				return
			}
		},
		methods: {
			handleAddcart() {
				uni.navigateTo({
					url: "./addCart"
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	.bankCard {
		.cartList {
			.cartitem {
				width: 690rpx;
				height: 175rpx;
				background: #04767C;
				border-radius: 6rpx 6rpx 6rpx 6rpx;
				padding: 20rpx 24rpx;
				box-sizing: border-box;
				margin: 0 auto;
				margin-bottom: 24rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.message {
					.bankname {
						font-size: 36rpx;
						font-family: PingFang SC-Bold, PingFang SC;
						font-weight: 400;
						color: #FFFFFF;
						line-height: 48rpx;
					}

					.text {
						font-size: 28rpx;
						font-family: PingFang SC-Regular, PingFang SC;
						font-weight: 400;
						color: #E5E5E5;
						line-height: 28rpx;
						letter-spacing: 1px;
						margin: 16rpx 0;
					}

					.cartnum {
						font-size: 28rpx;
						font-family: PingFang SC-Bold, PingFang SC;
						font-weight: 400;
						color: #FFFFFF;
						line-height: 28rpx;
						letter-spacing: 1px;
					}
				}

				.jie {
					width: 152rpx;
					height: 46rpx;
					background: #FFFFFF;
					border-radius: 380rpx 380rpx 380rpx 380rpx;
					font-size: 28rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 400;
					color: #04767C;
					line-height: 46rpx;
					text-align: center;
				}
			}
		}


		.addCart {
			width: 690rpx;
			height: 220rpx;
			background: #FFFFFF;
			border-radius: 6rpx 6rpx 6rpx 6rpx;
			margin: 0 auto;
			margin-top: 52rpx;
			font-size: 36rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 400;
			color: #04767C;
			line-height: 40rpx;
			display: flex;
			align-items: center;
			flex-direction: column;
			padding-top: 52rpx;
			box-sizing: border-box;

		}
	}
</style>